package com.tc.client;

import com.tc.myDto.BusinessInformation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "item-home")
public interface ItemHome {
    //查询店铺名是否被占用
    @GetMapping("/home/checkShopName")
    Boolean checkShopName(@RequestParam String shopName);
    //注册新店铺
    @PostMapping("/home/addShop")
    void addShop(BusinessInformation businessInformation);
}
